package com.ruoyi.activiti.service;

import com.ruoyi.activiti.domain.ProcessDefinitionEntity;
import com.github.pagehelper.Page;

public interface IProcessDefinitionService {

    /**
     * 获取流程定义列表
     * @param processDefinition
     * @return
     */
    Page<ProcessDefinitionEntity> listProcessDefinition(ProcessDefinitionEntity processDefinition);
    /**
     * 部署流程定义
     * @param filePath
     * @return
     */
    void deployProcessDefinition(String filePath);
    /**
     * 删除部署
     * @param deploymentIds
     * @return
     */
    int deleteProcessDeploymentByIds(String deploymentIds) throws Exception;
    /**
     * 暂停流程
     * @param id
     * @param suspendState
     */
    void suspendOrActiveDefinition(String id, String suspendState);

}
